/**
 * jims
 */
package com.jims.master.modules.base.consevaluate.web.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.base.consevaluate.web.dao.ConsEvaluateDao;
import com.jims.master.modules.base.consevaluate.web.entity.ConsEvaluate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Service
 * @author 陈涛
 * @version 2017-05-17
 */
@Service
@Transactional(readOnly = true)
public class ConsEvaluateService extends CrudService<ConsEvaluateDao, ConsEvaluate> {

	/**
	 * 医生服务评价列表
	 * @param title
	 * @param doctorId
	 * @author 陈涛
	 * @return
	 */
	public List<ConsEvaluate> consEvaluatesList(String title,String doctorId){
		return dao.consEvaluatesList(title,doctorId);
	}

	/**
	 * 查询是否已经评价
	 * @param consEvaluate
	 * @author 陈涛
	 * @return
	 */
	public ConsEvaluate getCons(ConsEvaluate consEvaluate){
		return dao.getCons(consEvaluate);
	}

	/**
	 * 得到各类型评价数目
	 * @param consEvaluate
	 * @author 陈涛
	 * @return
	 */
	public String countNum(ConsEvaluate consEvaluate){
		return dao.countNum(consEvaluate);
	}
	
}